<?php echo validation_errors(); ?>
   
<div class="contentcontainer">
    <div class="headings altheading">
        <h2 class="left">Permission Managerment</h2>
    </div>
    <div class="contentbox">
        <?php 
            $attributes = array('id' => 'frm_insert_ar','onsubmit'=>'return Form.validateInsertRole(this)');
            print form_open($action,$attributes);
        ?>
            <p>
                <label for="textfield"><strong>Permission Name:</strong></label>
                <input type="text" name="name" value="<?php print (isset($permission)) ? $permission['name'] : set_value('role_name'); ?>" id="role_id" class="inputbox required" > <br />
                <span class="role_id_required smltxt red" style="display: none;">loi ko de trong</span>
            </p>
            <p>
                <label for="textfield"><strong>Description:</strong></label>
                <input type="text" name="description" value="<?php print (isset($permission)) ? $permission['description'] : set_value('description'); ?>" id="description" class="inputbox required" > <br />
                <span class="description_required smltxt red" style="display: none;">phai dien day du</span>
            </p>

            <p>
                <label for="textfield"><strong>Active:</strong></label>
                <input type="radio" name="active" value="1" <?php print (isset($permission) && $permission['status'] == 1 ) ? 'checked="checked"' : ''; ?> > Yes
                <input type="radio" name="active" value="0" <?php print (isset($permission) && $permission['status'] == 0 || !isset($permission) ) ? 'checked="checked"' : ''; ?> > No
            </p>
            <p>
                
            </p>
            <p><input type="submit" value="Submit" class="btn" ></p>
        </form>
    </div>
</div>
 